package com.clusterswisdom.horn.api.ioc.struct;

import org.dom4j.Element;

public class StructConfig  {
	
	private String name;

	private String formate;
	
	private StructSource source;
	
	private StructDest dest;
	
	public StructConfig(Element element) {
		this.name = element.attributeValue("name");
		this.formate = element.attributeValue("formate");
		
		this.source = new StructSource(element.element("source"));
		this.dest = new StructDest(element.element("dest"));
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFormate() {
		return formate;
	}

	public void setFormate(String formate) {
		this.formate = formate;
	}

	public StructSource getSource() {
		return source;
	}

	public void setSource(StructSource source) {
		this.source = source;
	}

	public StructDest getDest() {
		return dest;
	}

	public void setDest(StructDest dest) {
		this.dest = dest;
	}
}
